from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

EXT_SRCS = [
        'csrc/vector_add_dcu.hip',
        'csrc/add.cpp'
]

setup(
    name='add_hip',
    ext_modules=[
        CUDAExtension(
            name='add_hip',
            sources=EXT_SRCS,
            extra_compile_args={
                 "cxx":["-std=c++17"],
                 "nvcc":["-std=c++17"]
                }
        )
    ],
    cmdclass={
        'build_ext': BuildExtension
    }
)

